package com.education.welco.mapper;


import com.education.welco.pojo.SCatalogQuestions;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 备课试题关联 数据层
 *
 * @author d
 * @date 2020-05-08
 */
@Repository
public interface SCatalogQuestionsMapper {

    /**
     * 查询备课试题关联信息
     *
     * @param id 备课试题关联ID
     * @return 备课试题关联信息
     */
    public SCatalogQuestions selectSCatalogQuestionsById(Integer id);

    /**
     * 查询备课试题关联列表
     *
     * @param sCatalogQuestions 备课试题关联信息
     * @return 备课试题关联集合
     */
    public List<SCatalogQuestions> selectSCatalogQuestionsList(SCatalogQuestions sCatalogQuestions);

    /**
     * 新增备课试题关联
     *
     * @param sCatalogQuestions 备课试题关联信息
     * @return 结果
     */
    public int insertSCatalogQuestions(SCatalogQuestions sCatalogQuestions);

    /**
     * 修改备课试题关联
     *
     * @param sCatalogQuestions 备课试题关联信息
     * @return 结果
     */
    public int updateSCatalogQuestions(SCatalogQuestions sCatalogQuestions);

    /**
     * 删除备课试题关联
     *
     * @param id 备课试题关联ID
     * @return 结果
     */
    public int deleteSCatalogQuestionsById(Integer id);

    /**
     * 批量删除备课试题关联
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSCatalogQuestionsByIds(String[] ids);
}